<%@page import="java.util.List"%>
<%@page import="stock_management_stock_ctrl.stock_helper"%>
<%@page import="helper.TecPaginator"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%@taglib prefix="sj" uri="/struts2-jquery-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
List<Object> list=(List<Object>)session.getAttribute("stock_list");
TecPaginator tp=new TecPaginator(request,list,8,"startWith");

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <sj:head/>
    <base href="<%=basePath%>">
    
    <title>My JSP 'advance_view_stock.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script src="Scripts/mfcrm_js.js" type="text/javascript"></script>
    <script src="Scripts/box.js" type="text/javascript"></script>
    <link href="Styles/box.css" rel="stylesheet" type="text/css" />
    <link href="Styles/mfcrm_styles.css" rel="stylesheet" type="text/css" />
    <link href="Styles/style_poppupnew.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery1.js" type="text/javascript"></script>
    <link media="screen" rel="stylesheet" href="Styles/colorbox.css" />
    <!--overlay video-->
    <script src="js/jquery.tools.min.js"></script>
    <!--popup overlay-->
   <script src="js/jquery.colorbox.js"></script>
    <SCRIPT LANGUAGE="JavaScript">
    
    var id1;
          var divid;
          function closeActionMenu() {
           $("#" + divid).hide();
           $("#" + divid).removeClass("div_action");
           $("#" + divid).addClass("div_action1");
          }
          $(document).ready(function () {
              $("html").click(function () {
              });
              $("#" + $(this).parent().parent().find(".sync1").attr("id"), "a.action_btn").click(function (event) {
                  event.stopPropagation();
              });
              $("a.action_btn").click(function () {
                  var stock_sync;
                  var isFeatured;
                  stock_sync = $(this).parent().parent().find(".sync").attr("id");
                  //alert("1.stock Sync value" + stock_sync);
                  objRow = $(this).parent().parent();
                  //alert("2.objrow value" + objRow);
                  var splt = stock_sync.split("_");
                  stock_id = splt[0];
                  //alert("3.Stock id" + stock_id);
                  isFeatured = 'hd_' + stock_id;
                  var blnFeatured = $('#' + isFeatured).val();
                  //alert("4.blnFeatured" + blnFeatured);
                  id1 = $(this).parent().parent().find(".sync2").attr("id");
                 // alert("id1" + id1);
                  var position = $(this).position();
                  divid = $(this).parent().parent().find(".sync1").attr("id");
                  //alert("5.divid value=" + divid);
                  $("#" + divid).addClass("div_action");

                  $("#" + divid).show().css({ 'left': position.left - 98, 'top': position.top + 23 });
              });
          });
    
  function openoverlaypopup3()
	{ 
		$(".popupEnquiry_menu").colorbox({width:"450px", height:"150px", iframe:true});
			$("#click").click(function(){ 
				$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false; 
			});
		}
   function openoverlaypopup2()
	{ 
		$(".popupEnquiry_menu").colorbox({width:"650px", height:"200px", iframe:true});
			$("#click").click(function(){ 
				$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false; 
			});
		}
		function openoverlaypopup1()
	{ 
		$(".popupEnquiry_menu").colorbox({width:"1000px", height:"750px", iframe:true});
			$("#click").click(function(){ 
				$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false; 
			});
		}   
    
function openoverlaypopup()
	{ 
		$(".popupEnquiry").colorbox({width:"1000px", height:"540px", iframe:true});
			$("#click").click(function(){ 
				$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false; 
			});
		}
    
  function openoverlaypopup_adv()
	{ 
		$(".popupEnquiry").colorbox({width:"1500px", height:"740px", iframe:true});
			$("#click").click(function(){ 
				$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false; 
			});
		}  
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=No,location=center,statusbar=0,menubar=0,resizable=0,width=1200,height=640');");
    }
    
     function Source_list() {
     
                    var url = "getSourceAction";
   
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_Source;
                    req.send(null);
  
                }

                function callback_Source() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("source");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                }
                function Location_list() {
     
                    var url = "getLocationAction";
   
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_Location;
                    req.send(null);
  
                }

                function callback_Location() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("po_location");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                }
                 function GetTeamLeader() {
                    var Location_ID = document.getElementById("po_location").value;
     
                    var url = "getTeamLeaderAction?location_id="+Location_ID;
           
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_TeamLeader;
                    req.send(null);
  
                }

                function callback_TeamLeader() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("tl_name");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                }
                 function GetExecutive() {
                    var executive_ID = document.getElementById("tl_name").value;
     
                    var url = "getExecutiveAction?executive_id="+executive_ID;
           
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_Executive;
                    req.send(null);
  
                }

                function callback_Executive() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("ex_name");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                }  
                
                
                
                
                
                
                 function GetMake() {
                    
     
                    var url = "getADVANCEMakeAction";
           
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_make;
                    req.send(null);
  
                }

                function callback_make() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("make");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                }   
                function getModel() {
                    var make = document.getElementById("make").value;
                    var url = "getADVANCEModelAction?model_action="+make;
           
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_model;
                    req.send(null);
  
                }

                function callback_model() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("model");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                } 
                 function getVersion() {
                    var model = document.getElementById("model").value;
                    var url = "getVersionAction?model_action="+model;
           
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_version;
                    req.send(null);
  
                }

                function callback_version() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("version");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                }  
               function getstock_location() {
                    
                    var url = "getStockLocationAction";
           
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_location;
                    req.send(null);
  
                }

                function callback_location() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("stock_location");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                }      
                
    </SCRIPT>
  </head>
  <body onload="return Source_list(); return Location_list();return GetMake();return getstock_location();">
 <s:form action="search_stock" method="post" name="stock_data" theme="css_xhtml">
 
<table border="0" cellpadding="0" cellspacing="0" align="left">
<tbody>
<tr bgcolor="#f7f7f7">

	<td nowrap="nowrap" class="textfont" bgcolor="fe6603" width="1%">&nbsp;<font color="#ffffff"><b>Update Master</b></font>&nbsp;&nbsp;&nbsp;</td>
	
	
	<td nowrap="nowrap"  align="left">&nbsp;

    <a href="model_master.action" class="popupEnquiry_menu" onclick="javascript:openoverlaypopup1();" onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'"> <span class="labelfont">Model Master</span> </a>&nbsp;<span class="orangepipes">|</span>
    <a href="source_add.action" class="popupEnquiry_menu" onclick="javascript:openoverlaypopup3();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText">Source</span> </a>&nbsp;<span class="orangepipes">|</span>
    <a href="jsp_pages/add_teamleader.jsp" class="popupEnquiry_menu"  onclick="javascript:openoverlaypopup2();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText">Team Leader</span> </a>&nbsp;<span class="orangepipes">|</span>
    <a href="jsp_pages/add_executive_master.jsp" class="popupEnquiry_menu"  onclick="javascript:openoverlaypopup2();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText">Executive</span> </a>&nbsp;<span class="orangepipes">|</span>
    <a href="jsp_pages/add_location_master.jsp" class="popupEnquiry_menu"  onclick="javascript:openoverlaypopup2();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText">Location</span> </a>&nbsp;<span class="orangepipes">|</span>
    <!--<a href="" class="popupEnquiry_menu"  onclick="javascript:openoverlaypopup2();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText">Insurance Company</span> </a>&nbsp;<span class="orangepipes">|</span>   
	--></td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" align="left" width="100%" class="obox1">
<tbody>

<tr>
<td width="100%" height="4" valign="middle" align="left" ><font size="3" style=" border: 0 none;float: none; height: 35px; margin-left: 27px; width: 93px;"><u> Search Form:123</u></font></td>
</tr>
			<tr>
				<td valign="top" align="left" bgcolor="#ffffff" colspan="1">
				<table bordercolor="#fe8901" cellspacing="0" class="obox" cellpadding="0" width="100%" align="center" bgcolor="#ffffff" border="0">
					<tbody><tr>
						<td>
						<div class="obox" style="position:static; width: 99%; padding-left: 5px;  padding-top: 5px; padding-bottom: 5px;">
						  <table cellpadding="3" cellspacing="1" border="0" bgcolor="#f5f5f5" style="width: 100%">
						    <tbody>
                              <tr bgcolor="#ffffff">
						         <td class="style1">Source : <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 <td class="style2">
                                   <s:select  list="# {'':'Select Source'}" name="search_source" id="source" onfocus="Source_list();" style="width:106px;" tabindex="5" />
                                 </td>
                                  
						        <td class="style5">Location : <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2">
                               <s:select  list="# {'':'Select Location'}" name="search_po_location" id="po_location" onfocus="Location_list();" onchange="GetTeamLeader();" style="width:106px;" tabindex="6"/>
                               </td>
						         <td class="style1">TL : <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 <td nowrap="nowrap" class="style1">
                                  <input name="tl" type="hidden" id="tl" title="Please Press Tab" >
                                  <s:select  list="# {'':'Select Team Leader'}" name="search_tl_name" id="tl_name" onchange="GetExecutive();" style="width:106px;" tabindex="7"/>
                                </td>
                                <td class="style1">Executive :  <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
						        <td valign="top" nowrap="nowrap" class="style1">
						        <input name="ex_id" type="hidden" id="ex_id" title="Please Press Tab" >
						       <s:select  list="# {'':'Select Executive'}" name="search_ex_name" id="ex_name" style="width:106px;" tabindex="8"/>
						        </td>
					           </tr>
					          
					         <tr bgcolor="#ffffff">
						        <td nowrap="nowrap" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="left" colspan="4"></td>
						        <td class="style5" colspan="4" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center"></td>
					          </tr>   
					          <tr bgcolor="#ffffff">
						        <td class="style1">Make:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 <td class="style2">
                                  <s:select  list="# {'':'Select Make'}" name="search_v_make" id="make" onfocus="GetMake();" onchange="getModel();" style="width:106px;" tabindex="15"/>
                                 
                                 </td>
                                  
						        <td class="style5">Model:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2">
						        <input name="model_id" type="hidden" id="model_id" title="Please Press Tab" >
						       <s:select  list="# {'':'Select Model'}" name="search_v_model" id="model" onchange="getVersion();"  style="width:106px;" tabindex="16"/>
						        </td>
                              
                                                          
						        <td class="style1">Version :<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
                                <td nowrap="nowrap" class="style1">
                                 <s:select  list="# {'':'Select Version'}" name="search_v_version" id="version"  readonly="readonly" style="width:106px;" tabindex="17"/>
                                </td>
                                 <td class="style1"><span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
                                <td nowrap="nowrap" class="style1">
                                </td>
					          </tr>   
					            <tr bgcolor="#ffffff">
						        <td nowrap="nowrap" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center" colspan="4"></td>
						        <td class="style5" colspan="4" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center"></td>
					          </tr>  
					          
					          <tr bgcolor="#ffffff">
						        <td class="style1">Stock Location:<span  style="color:Red;font-size:Medium;display:none;">*</span>
						      
                                  </td>
						        <td valign="top" nowrap="nowrap" class="style1" >
                                   
                                    <s:select  list="# {'':'Select Location'}" name="search_stock_location" id="stock_location" onfocus="getstock_location();" style="width:106px;" tabindex="58"/>
						          </td>
						        <td class="style1">Stock Status:<span  style="color:Red;font-size:Medium;visibility:hidden;">*</span>
                                  </td>
                                 <td nowrap="nowrap" class="style1">
                                <select id="stock_status" style="width:106px;" name="search_stock_status" tabindex="60">
                                <option value="">Select Source</option>
                                 <option value="Stock">Stock</option>
                                 <option value="Procured">Procured</option>
                                 <option value="Refrub">Refrub</option>
                                 <option value="Display">Display</option>
                                 <option value="Offload">Offload</option>
                                 <option value="Booked">Booked</option>
                                 <option value="Delivered">Delivered</option>
                                </select> 
                                 </td>
                                  
						        <td class="style5">Insurance:<span  style="color:Red;font-size:Medium;display:none;" >*</span>
                                  </td>
                                  
						        <td class="style2">
						        <select id="doc_ins" style="width:106px;" name="search_doc_ins" tabindex="61">
                                <option value="">Select Insurance</option>
                                 <option value="No">No</option>
                                 <option value="Yes">Yes</option>
                                </select>  
						        </td>
						        <td class="style1">Reg:<span  style="color:Red;font-size:Medium;visibility:hidden;">*</span>
                                  </td>
                                <td nowrap="nowrap" class="style1">
                                <input type="text" name="search_reg" size="13pxl">
                                   </td>
					          </tr> 
					          <tr bgcolor="#ffffff">
						        <td nowrap="nowrap" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="left" colspan="4"></td>
						        <td class="style5" colspan="4" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center"></td>
					          </tr>  
					            <table cellpadding="3" cellspacing="1" border="0" bgcolor="#f5f5f5" style="width: 100%">
						    <tbody> 
					            <tr bgcolor="#ffffff">
						         <td class="style1" ><input name="tl" type="checkbox" id="tl" title="Please Press Tab" >Added Between: <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 <td class="style2">
                                 <sj:datepicker value="" cssStyle="width: 80px" name="v_regd" id="datepicker" displayFormat="yyyy-MM-dd" imageTooltip="Select Your date" showButton="false" changeYear="true" changeMonth="true" onChangeTopics="datepickerSelectedDate" onCompleteTopics="datepickerClosed" />
                                 <font color="green"> To </font>
								
								<sj:datepicker value="" cssStyle="width: 80px" name="v_regd1" id="datepicker1" displayFormat="yyyy-MM-dd" imageTooltip="Select Your date" showButton="false" changeYear="true" changeMonth="true" onChangeTopics="datepickerSelectedDate" onCompleteTopics="datepickerClosed" />
								
                                 </td>
                                  
						        <td class="style5"><input name="tl" type="checkbox" id="tl" title="Please Press Tab" >Booked Between: <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2">
						        <sj:datepicker value="" cssStyle="width: 80px" name="v_booked" id="datepicker2" displayFormat="yyyy-MM-dd" imageTooltip="Select Your date" showButton="false" changeYear="true" changeMonth="true" onChangeTopics="datepickerSelectedDate" onCompleteTopics="datepickerClosed" />
						        <font color="green"> To </font>
								
								<sj:datepicker value="" cssStyle="width: 80px" name="v_booked2" id="datepicker3" displayFormat="yyyy-MM-dd" imageTooltip="Select Your date" showButton="false" changeYear="true" changeMonth="true" onChangeTopics="datepickerSelectedDate" onCompleteTopics="datepickerClosed" />
								
                               </td>
						         <td class="style5"><input name="tl" type="checkbox" id="tl" title="Please Press Tab" >Delivered Between: <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2">
						        <sj:datepicker value="" cssStyle="width: 70px" name="v_delver" id="datepicker4" displayFormat="yyyy-MM-dd" imageTooltip="Select Your date" showButton="false" changeYear="true" changeMonth="true" onChangeTopics="datepickerSelectedDate" onCompleteTopics="datepickerClosed" />
						        <font color="green"> To </font>
								
								<sj:datepicker value="" cssStyle="width: 70px" name="v_delver2" id="datepicker5" displayFormat="yyyy-MM-dd" imageTooltip="Select Your date" showButton="false" changeYear="true" changeMonth="true" onChangeTopics="datepickerSelectedDate" onCompleteTopics="datepickerClosed" />
								
                               </td>
					           </tr>
					           <tr bgcolor="#ffffff">
						         <td class="style1"><span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 <td class="style2">
                                  
                                 </td>
                                  
						        <td class="style5"><span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2">
						        
                               </td>
						        <td class="orgbg" colspan="8" align="right">
                                 <font style=" border: 0 none;float: none; height: 35px; margin-left: 27px; width: 93px; font-size: small; font-style: normal;">   <input type="submit" name="Button1" value="View Stock"  id="Button1" tabindex="66" class="btn"></font>
						          &nbsp;&nbsp;&nbsp;
                                    <a class="labelfont" href="advance_search_stock_m.action"><font style=" border: 0 none;float: none; height: 35px; margin-left: 27px; width: 93px; font-size: small; font-style: normal;">Reset</font></a>&nbsp;<span class="orangepipes"></span>
                                    </td>
					           </tr>
					      </tbody>
					      </table>
                             <tr bgcolor="#ffffff">
						        <td nowrap="nowrap" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="left" colspan="4"></td>
						        <td class="style5" colspan="4" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center"></td>
					          </tr> 					                        

<table border="1" cellpadding="0" cellspacing="0" align="left" width="100%">
<tbody>
<tr height="30">

<td class="advance_tr" ><font color="#00007F" > Stock_ID</font ></td><td   class="advance_tr"><font color="#00007F" >Source</font></td><td   class="advance_tr"><font color="#00007F" >Procument</font></td><td   class="advance_tr"><font color="#00007F" >Make</font></td><td   class="advance_tr"><font color="#00007F" >Model</font></td><td   class="advance_tr"><font color="#00007F" >Version</font></td>
<td   class="advance_tr"><font color="#00007F" >Car Mfg</font>  </td><td   class="advance_tr"><font color="#00007F" >Reg Date</font></td><td   class="advance_tr"><font color="#00007F" >Reg No</font></td><td   class="advance_tr"><font color="#00007F" >KMS</font></td><td   class="advance_tr"><font color="#00007F" >Insurance</font></td>
<td   class="advance_tr"><font color="#00007F" >Asking Price</font></td><td class="advance_tr"><font color="#00007F" >Action</font>
</td>

</tr>
<% 
while(tp.isNext()){
stock_helper lb=(stock_helper)tp.next();
%>
<tr bgcolor="#ffffff">
               <td><a href="adv_edit_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText"><%=lb.getStock_id()%></span> </a></td>
               <td><a href="adv_edit_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText"><%=lb.getSource()%></span> </a></td>
               <td><a href="adv_edit_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText">Date: <%=lb.getV_regd()%></br> Exec:<%=lb.getEx_name() %></span> </a></td>
			   <td><a href="adv_edit_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText"><%=lb.getV_make()%></span> </a></td>
			   <td><a href="adv_edit_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText"><%=lb.getV_model()%></span> </a></td>
			   <td><a href="adv_edit_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText"><%=lb.getV_version()%></span> </a></td>
			   <td><a href="adv_edit_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText">Month :<%=lb.getV_mfgm()%></br> Year:<%=lb.getV_mfgy() %></span> </a></td>
			   <td><a href="adv_edit_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText"><%=lb.getV_regd()%></span> </a></td>
			   <td><a href="adv_edit_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText"><%=lb.getV_reg()%></span> </a></td>
			   <td><a href="adv_edit_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText"><%=lb.getV_kms()%></span> </a></td>
			   <td><a href="adv_edit_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText"><%=lb.getDoc_ins()%></span> </a></td>
			   <td><a href="adv_edit_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'" class="btn"> <span class="footer_HeadlineBlueText"><%=lb.getPd_selling_price()%></span> </a></td>
           <td>
           
                                                <div id="button<%=lb.getStock_id()%>"  class="container" />
                                                   <a class="sprite-fixed action_btn sync" id="<%=lb.getStock_id()%>"></a> 

                                                <input type="hidden" id="hd_<%=lb.getStock_id()%>" />  
                                                </div>

                                                 <!---popup list-->
	<div class="clear"></div>    
    <div style="display: none; left: 975px; top: 376.5px;" class="sp sync1" id="div_action<%=lb.getStock_id()%>">
          <span style="float:right;"><a  class="sp sync2" style="padding: 0px 3px 0pt 0pt;"id="close_action<%=lb.getStock_id()%>" onclick="closeActionMenu();">X</a></span>
        <div class="clear"></div>
        <ul>
           
            <li> <a href="adv_edit_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'"> <span class="sprite-fixed act_marked"></span>Update</a></li>
                    
           
            <li><a href="print_stock_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'">
                    <span class="sprite-fixed act_edtStock"></span>Print</a></li>
            <li><a href="send_email_stock_data.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'">
                    <span class="sprite-fixed act_edtStock"></span>Email</a></li>
            
            <li><a href="adv_photo_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'">
                    <span class="sprite-fixed act_removeStock"></span>Photo</a></li>
            <li><a href="adv_edit_view.action?edit_view_action=<%=lb.getStock_id()%>" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'"> <span class="sprite-fixed act_marked"></span>View </a></li>
                        
        </ul>
    </div>
    </td>
</tr>



<%} %>

</tbody>
</table>
<tr>
<td >
<br>
</td>
</tr>
<tr>
<td colspan="5">
<a href="stock_view_page.action" class="popupEnquiry"  onclick="javascript:openoverlaypopup();"  onmouseover="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'"> <span class="footer_HeadlineBlueText"><font style=" border: 0 none;float: none; height: 35px; margin-left: 27px; width: 93px; font-size: small; font-style: normal; color: #00007F">Create Stock</font></span> </a>
<!--

<input type=button value="Create Stock" onClick="javascript:popUp('stock_view_page.action')" class="btn">


-->

<font style=" border: 0 none;float: none; height: 35px; margin-left: 27px; width: 93px; "><input type=button value="Import Stock"  class="btn"></font>
</td>
</tr>
</tbody>
</table>
   </tbody>
   </table>
   </td>
   </tr>
   </tbody>
   </table>
   

</s:form>
<iframe width=174 height=189 name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="HelloWorld/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>
  </body>
</html>
